import type { RouteRecordRaw } from 'vue-router';

import { VBEN_LOGO_URL } from '@vben/constants';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: VBEN_LOGO_URL,
      order: 7,
      title: '发票对账',
    },
    name: 'Invoice',
    path: '/invoice',
    children: [
      {
        name: 'InvoiceWriteOff',
        path: '/invoice/writeOff',
        component: () => import('#/views/invoice/writeOff/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '发票号核销',
        },
      },
      {
        name: 'InvoiceAudit',
        path: '/invoice/audit',
        component: () => import('#/views/invoice/audit/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '发票审核',
        },
      },
      {
        name: 'InvoiceRecord',
        path: '/invoice/record',
        component: () => import('#/views/invoice/record/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '发票核销记录',
        },
      },
    ],
  },
];

export default routes;
